﻿using AdminAuthority.Attributes;
using AdminAuthority.Entities;

using Mapster;

namespace AdminAuthority
{
    /// <summary>
    /// AdminAuthorityMapper
    /// </summary>
    public class AdminAuthorityMapper : IRegister
    {
        public void Register(TypeAdapterConfig config)
        {
            //    //.Map(dest => dest.Name, src => src.Name)
            //// AuthorityMenuAttribute -> AuthorityMenuItem
            //config.ForType<AuthorityControllerAttribute, AuthorityMenuItem>()
            //      ;
            //AuthorityFunctionAttribute -> AuthorityFunctionItem
            config.ForType<AuthorityPermissionAttribute, AuthorityPermissionItem>()

                  ;
        }
    }
}